package com.lcf.system.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 购物车(GoodsCart)表实体类
 *
 * @author lcf
 * @since 2025-04-24 21:14:34
 */
@Data
@NoArgsConstructor
public class GoodsCartDTO  {
    //商品id
    @Schema(description = "商品id")
    @NotNull(message = "商品id不能为空")
    private Long goodsId;
    //物品数量
    @Schema(description = "物品数量")
    @Min(value = 1, message = "物品数量不能小于1")
    private Integer goodsNum;
}

